package com.baidu.mpks.token.service;

import com.baidu.mpks.token.dao.UserTokenDao;
import com.baidu.mpks.token.domain.UserToken;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserTokenServiceImpl implements UserTokenService {
    private static final Logger log = LoggerFactory.getLogger(UserTokenServiceImpl.class);
    @Autowired
    private UserTokenDao userTokenDao;

    public UserTokenServiceImpl() {
    }

    public UserToken getByToken(String token) {
        return this.userTokenDao.findByToken(token);
    }
}
